<?php

namespace App\Http\Controllers;

use App\News;
use Illuminate\Http\Request;

class NewsController extends Controller
{
    public function detail($id){
       $news= News::findOrFail($id);
       return view('news',compact('news',$news));

    }
}
